package cn.hinglo.gameclaw.client.dao;

import cn.hinglo.gameclaw.data.dbdao.MyMapper;
import cn.hinglo.gameclaw.user.bean.Morder;
import cn.hinglo.gameclaw.user.bean.Orders;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @createTime: 2018/1/4
 * @author: HingLo
 * @description: APP订单生产
 */
@Repository
public interface OrderClientDao extends MyMapper<Morder> {
    /**
     * 根据用户的Id来查询全部订单
     *
     * @param userId 用户的唯一ID
     * @return 订单列表
     */
    @Select("select * from orders where user_id=#{userId}")
    List<Orders> listUserIdDao(String userId);
}
